package com.common.platform.base.config.database;

import java.util.List;


/**
 * 数据范围
 */
public class DataScope {

    /**
     * 限制范围的字段名称
     */
    private String scopeName = "deptId";

    /**
     * 具体的数据范围
     */
    private List<Long> deptIds;

    public DataScope(){

    }

    public DataScope(List<Long> deptIds){
        this.deptIds = deptIds;
    }

    public DataScope(String scopeName,List<Long> deptIds){
        this.scopeName = scopeName;
        this.deptIds = deptIds;
    }

    public void setScopeName(String scopeName){
        this.scopeName = scopeName;
    }

    public String getScopeName(){
        return this.scopeName;
    }

    public void setDeptIds(List<Long> deptIds){
        this.deptIds = deptIds;
    }

    public List<Long> getDeptIds(){
        return  this.deptIds;
    }

}
